package org.hypnus.e.sub;

import java.util.ArrayList;
import java.util.List;

public class EGrid {

	private String id ;
	
	private String parentid ;
	
	private String pageAction ;
	
	private String pageMehtod ;
	
	private int pageSize =10;
	
	private int pageNo ;
	
	private int total ;
	
	private String dataset ;
	
	private List<EField> fields = new ArrayList<EField>(16);
	
	private List<ERecord> records ;
	
	public String getParentid() {
		return parentid;
	}


	public void setParentid(String parentid) {
		this.parentid = parentid;
	}


	public int getPageSize() {
		return pageSize;
	}

	public int getTotal() {
		return total;
	}


	public void setTotal(int total) {
		this.total = total;
	}


	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}


	public int getPageNo() {
		return pageNo;
	}


	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}


	public EGrid() {
		super();
	}

	
	public EGrid(String id) {
		super();
		this.id = id;
	}


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPageAction() {
		return pageAction;
	}

	public void setPageAction(String pageAction) {
		this.pageAction = pageAction;
	}

	public String getPageMehtod() {
		return pageMehtod;
	}

	public void setPageMehtod(String pageMehtod) {
		this.pageMehtod = pageMehtod;
	}

	public String getDataset() {
		return dataset;
	}

	public void setDataset(String dataset) {
		this.dataset = dataset;
	}

	
	public List<EField> getFields() {
		return fields;
	}


	public void setFields(List<EField> fields) {
		this.fields = fields;
	}


	public List<ERecord> getRecords() {
		return records;
	}


	public void setRecords(List<ERecord> records) {
		this.records = records;
	}


	public void addField(EField eField){
		fields.add(eField) ;
	}
	
}
